package practice.练习CopyOnWriteArrayList;

import java.util.concurrent.CopyOnWriteArrayList;

public class MyCopyOnWriteArrayList {
    public static void main(String[] args) {
        CopyOnWriteArrayList<String> list = new CopyOnWriteArrayList<>();
        list.add("shibixiu");
        list.add("zhangbixiu");
        list.add("libixiu");
        list.add("zhaobixiu");
        list.forEach((s)->{
            System.out.println(s);
        });
    }
}
